#include <iostream>
#include <map>
using namespace std;

// 消除重复项
int main()
{
    int n, m;
    while (cin >> n)
    {
        map<int, int> map_;
        while (n--)
        {
            cin >> m;
            map_.insert(pair<int, int>(m, 0));
        }
        for (auto p = map_.begin(); p != map_.end(); p++) {
            cout << p->first << endl;
        }
    }
    return 0;
}